<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%sys_action_log}}".
 *
 * @property integer $id
 * @property string $request_url
 * @property string $request_user
 * @property string $begin_time
 * @property string $end_time
 * @property string $e_time
 * @property integer $flag
 */
class SysActionLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%sys_action_log}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['request_url', 'request_user'], 'required'],
            [['flag'], 'integer'],
            [['request_url'], 'string', 'max' => 150],
            [['request_user'], 'string', 'max' => 50],
            [['begin_time', 'end_time', 'e_time'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'request_url' => '请求链接',
            'request_user' => '请求者',
            'begin_time' => '开始时间',
            'end_time' => 'End Time',
            'e_time' => '结束时间',
            'flag' => '0：默认是正在处理，1：处理结束',
        ];
    }
}
